﻿@model IEnumerable<ElectrosLTD.Models.FaultListModel>

@{
    ViewBag.Title = "Faults";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Faults</h2>

<table>
    <tr>
        <th>
            OrderDetailsID
        </th>
        <th>
            productName
        </th>
        <th>
            username
        </th>
        <th>
            faultDescription
        </th>
        <th>
            Status
        </th>
        <th>
            EnteredDate
        </th>
        <th>
            ExpiryDate
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.OrderDetailsID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.productName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.username)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.faultDescription)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EnteredDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ExpiryDate)
        </td>
        <td>
            @Html.ActionLink("Update Status", "StatusUpdate", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
